﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Web.Mvc;
namespace DroidClaim.Web.Models
{
	public class SessionInfoModel
	{
		
			    
					 
						[DisplayName("Id")]
						public int Id { get; set; }
									 
					 
						[Required]
						[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
						[DisplayName("UpdateTime")]
						public DateTime UpdateTime { get; set; }
									 
											[Required]
						[StringLength(64, ErrorMessage = "SessionId cannot be longer than 64 characters.")]
						[Remote("doesSessionIdExist", "SessionInfo", HttpMethod = "POST", AdditionalFields = "Mode, OldValue", ErrorMessage = "SessionId already exists. Please enter a different SessionId")]
						[DisplayName("SessionId")]
						public String SessionId { get; set; }
									 
					 
												[DisplayName("Surveyor")]
						public int Surveyor { get; set; }
						public string SurveyorCode { get; set; }
						public string SurveyorName { get; set; }
									 
					 
												[DisplayName("Customer")]
						public int Customer { get; set; }
						public string CustomerCode { get; set; }
						public string CustomerName { get; set; }
									 
					  
						[StringLength(512, ErrorMessage = "RegistrationId cannot be longer than 512 characters.")]
						[DisplayName("RegistrationId")]
						public String RegistrationId { get; set; }
													public List<SessionInfoModel> ListOfSessionInfo { get; set; }
	}
}